revealer: Prefer min and nat size
authorBenjamin Otte <otte@redhat.com>
Wed, 9 Sep 2020 13:53:09 +0000 (15:53 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 9 Sep 2020 15:38:37 +0000 (17:38 +0200)
commitdfccaa8831589576e081c9d6d39a5eff3b80284a
treee0484206d1ea1ae96b4b0e66f609926da4e11508
parentcc58956dbbe7ba6bb1c1b338678e7708e9b90df8
revealer: Prefer min and nat size

Assume that the fully expanded revealer will likely get an allocation
that matches the child's minimum or natural allocation, so we
special-case these two values.

So when - due to the precision loss - multiple sizes would match the
current allocation, we don't pick one at random, we prefer the min and
nat size.

The preference of nat size over min sie was decided after an IRC vote,
we don't actually have an idea what's more likely to happen in the real
world.
Should we ever get better data, we might want to switch.
gtk/gtkrevealer.c